﻿using System;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Perseus.WCF.REST.Contract.Data
{
    [DataContract]
    public class EmpData
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Age { get; set; }

        public override string ToString()
        {
            string format = "Name: {0}\nAge: {1}\n";

            return string.Format(format, Name, Age);
        }
    }
}
